package HomeWork01;

public class Test02 {
    public static void main(String[] args) {
            Person a=new Woman();
            Person b=new Man();
            a.pee();
            b.pee();

    }
}
abstract class Person{
    public abstract void pee();
}
class Woman extends Person{
    @Override
    public void pee() {
        System.out.println("坐着尿");
    }
}
class Man extends Person{
    @Override
    public void pee() {
        System.out.println("站着尿");
    }
}